package com.micro.train.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 车站信息实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("车站信息")
public class Station {
    
    @TableId(value = "车站ID", type = IdType.AUTO)
    private Long stationId;
    
    @TableField("车站名称")
    private String stationName;
    
    @TableField("车站代码")
    private String stationCode;
    
    @TableField("城市代码")
    private String cityCode;
    
    @TableField("城市名称")
    private String cityName;
    
    @TableField("省份")
    private String province;
    
    @TableField("状态")
    private Integer status = 1; // 0-关闭,1-运营中
    
    @TableField(value = "创建时间", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(value = "更新时间", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableLogic
    @TableField("deleted")
    private Integer deleted;
}
